// ********************************************************************************************
// Este archivo fuente es propiedad de Feria de Remates S.R.L. de C.V. Prohibida su copia o uso
// sin autorización explícita.
// This source file is propietary to Feria de Remates. May not be used or copied
// without explicit authorization.
// ********************************************************************************************/
package com.feriaderemates.dao.listing;

import com.feriaderemates.domain.listing.FixedPriceListing;

/**
 *
 * @author Oscar García
 */
public interface FixedPriceListingDaoInterface {

    /**
     * Adds fixed price listing fields only (not parent fields). It'll insert all the fields
     * in the FixedPriceListing except numberOfOffers and previousPrice
     *
     * @param listing the listing to add
     */
    public void addFixedPriceListing(FixedPriceListing listing);

    /**
     * Gets a FixedPriceListing by its id. This method joins the parent table
     * listing and other tables to get ALL its fields.
     *
     * @param listingId the listing id
     * @return the FixedProiceListing
     */
    public FixedPriceListing getFixedPriceListingById(long listingId);
    
    /**
     * Updates fixed price listing fields only. It'll update all the fields
     * in the FixedPriceListing except numberOfOffers and previousPrice
     * 
     * @param listing the listing to update
     */
    public void updateFixedPriceListing(FixedPriceListing listing);
    

}
